import { Request } from "./base";

const API = {
	globalAPI: {
		Login: (data) => {
			return Request("post", "login", data);
		},
		Logout: (data) => {
			return Request("post", "logout", data);
		},
		GetUserInfo: () => {
			return Request("get", "getInfo");
		},
		GetPreOrderTypeList: (data) => {
			return Request("post", "pre-order-type/list", data);
		},
		GetTeachingMaterialList: (data) => {
			return Request("post", "book/category/list", data);
		},
		GetTermList: (data) => {
			return Request("post", "school-term/list", data);
		},
		GetAreaList: (data) => {
			return Request("post", "area/list", data);
		},
		GetDeptList: (data) => {
			return Request("post", "system/dept/list", data);
		},
		GetGradeList: (data) => {
			return Request("post", "grade/list", data);
		},
		SearchVersionList: (data) => {
			return Request("post", "book/version/list", data);
		},
		GetSubjectList: (data) => {
			return Request("post", "branch/list", data);
		},
		SearchSchoolList: (data) => {
			return Request("post", "school/list", data);
		},
		SearchPreOrderList: (data) => {
			return Request("post", "pre-order/list", data);
		},
		SearchUserList: (data) => {
			return Request("post", "system/user/search", data);
		},
		TestApi: (data) => {
			return Request("post", "test", data);
		},
	},
};

export default API;
